package edu.mju.admin.service;

import com.alibaba.fastjson.JSONObject;
import edu.mju.admin.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author CBL
 * @since 2021-01-10
 */
public interface SysPermissionService extends IService<SysPermission> {

    List<SysPermission> selectAllMenu(Integer roleId);

    void saveRolePermission(Integer roleId, Integer[] permissionId);

    void removeChildById(Integer id);

    List<SysPermission> queryAllMenu();

    List<JSONObject> selectPermissionByUserId(Integer id);

    List<String> selectPermissionValueByUserId(Integer id);
}
